package com.cuit.mimall.dto;

import com.cuit.mimall.entity.Order;
import com.cuit.mimall.entity.OrderItem;
import lombok.Data;

import java.util.List;

/**
 * 这是一个数据传输对象，用于封装订单信息和订单项信息
 *
 * @author : TeaWu
 */
@Data
public class OrderDto {
    private Order order;
    private List<OrderItem> items;

    public OrderDto(Order order, List<OrderItem> items) {
        this.order = order;
        this.items = items;
    }

    public OrderDto() {
    }
}
